<!DOCTYPE html>
<html lang="en">
{{ partial "head.html" . }}

<body>
  <article class="post {{ .Site.Language.LanguageName }}" id="article">
    <div class="row">
      <div class="col-xs-12">
        <div class="site-header">
          {{ partial "header.html" . }}
        </div>
        <header class="post-header">
          <h1 class="post-title">{{ .Title }}</h1>
          {{ if in .Site.Params.mainSections .Type }}
          <div class="row post-desc">
            <div class="col-xs-6">
              {{ if .Date }}
              <time class="post-date">
                {{ .Date.Format "2006-01-02" }}
              </time>
              {{ end }}
              {{ if .Params.series }}
              {{ range .Params.series }}
              <a href="/series/{{ lower . }}/"><strong>&nbsp;《{{ . }}》</strong></a>
              {{ end }}
              {{ end }}
              <br>
            </div>
          </div>
          <div class="row end-xs">
            {{ range .Params.author }}
              <a href="/author/{{ lower . }}/"><strong>&nbsp;@{{ . }}</strong></a>        
            {{ end }}
          </div>
          {{ end }}
        </header>

        <div class="post-content markdown-body">
          {{ .Site.Params.postHeaderContent | safeHTML }}
          {{ .Content }}
        </div>

        <div class="row middle-xs">
          <div class="col-xs-12">
            {{ range .Params.tags }}
            <div class="post-tags">
              <a href="{{ site.LanguagePrefix }}/tags/{{ lower . | urlize }}/">
                {{ . }}
              </a>
            </div>
            {{ end }}
          </div>
        </div>
        {{ if in .Site.Params.mainSections .Type }}
          <div class="row">
            <div class="col-xs-12">
              {{ .Site.Params.postFooterContent | safeHTML }}
            </div>
          </div>

          {{ partial "related.html" . }}

          {{ if .Site.Params.postAds }}
          <div class="post-ads">{{ .Site.Params.postAds | safeHTML }}</div>
          {{ end }}
          <!-- split -->
          <div style="height: 50px;"></div>
          {{ if .Site.Params.disqus }}
          <div class="post-comments">
            {{ partial "disqus.html" . }}
          </div>
          {{ end }}
        {{ end }}

        {{ partial "footer.html" . }}
      </div>
    </div>
  </article>

  {{ partial "scripts.html" . }}
  {{ if .Site.Params.extraBody }}
  {{ .Site.Params.extraBody | safeHTML }}
  {{ end }}

</body>

</html>